How do I get `set show-all-if-ambiguous on` in my .inputrc to play nice with the Python interpreter?

Posted by ysim on Super User See other posts from Super User or by ysim
Published on 2013-10-25T14:41:33Z Indexed on 2013/10/25 15:57 UTC
Read the original article Hit count: 181

Filed under:
|
|

I noticed that after I added the set show-all-if-ambiguous on line to my ~/.inputrc, whenever I pressed tab to indent a block, it would show me the bash Display all ... possibilities? (y or n) prompt, and leave me unable to indent the actual code.

Is there any way to keep that line in my .inputrc but still have the tab key work as expected in the Python interpreter?

This is in my VirtualBox Ubuntu 12.04 VM, if it matters.

EDIT: Curiously, I now have a different issue with the Python shell that comes with Django -- when I press tab, I get Python tab completion, but only with one Tab press. I've opened a separate question here for it.

© Super User or respective owner

Related posts about bash

Related posts about python